<template>
  <div class="employee">
    <div class="employee-photo">
      <img src="" alt="">
    </div>
    <div class="employee-message">
      <p>{{employeeData.name}} 24岁 本科</p>
      <!-- <p>信贷职员</p> -->
      <!-- <p>三藩市银行</p> -->
      <p>编号：{{employeeData.id}}</p>
      <p>入职时间</p>
    </div>
  </div>
</template>

<script>
export default {
  name:'EmployeeCard',
  props:{
    employeeData: Object
  }
}
</script>

<style lang="scss">
  .employee{
    display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
    width: inherit;
    padding: 0 5px;
    background-image: url(~@/assets/linearPurple.jpg);
    border-radius: 8px;

    &-photo{
      width: 90px;
      height: 90px;
      border-radius: 50%;
      img{
        display: block;
        border-radius: 50%;
        width: 90px;
        height: 90px;
        background-color: #fff;
      }
    }

    &-message{
      margin-left: 10px;
      flex: 1;
      height: inherit;
      line-height: 1.5;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      padding: 10px 0;

      p{
        text-align: left;
      }
    }
  }
</style>